import Vue from 'vue'
import VueRouter from 'vue-router'
import screen from '../views/screen.vue'
import test1 from '../views/test.vue'
Vue.use(VueRouter)

const routes = [

  {
    path: '/',
    name: 'screen',
    component: screen
  },
  {
    path: '/test',
    name: 'test',
    component: test1
  }

]

const router = new VueRouter({
  routes,
  scrollBehavior (to, from, savedPosition) {
    return { x: 0, y: 0 }
  }
})

export default router
